// 请根据不用的测试环境添加引用
/**
 * AStar
 */

var a = new AStar(30, 30);

a.addObstacle({ x: 6, y: 0 });
a.addObstacle({ x: 5, y: 1 });
a.addObstacle({ x: 5, y: 2 });
a.addObstacle({ x: 5, y: 3 });
a.addObstacle({ x: 5, y: 4 });
a.addObstacle({ x: 5, y: 5 });
a.addObstacle({ x: 5, y: 6 });
a.addObstacle({ x: 5, y: 7 });
a.addObstacle({ x: 5, y: 8 });
a.addObstacle({ x: 5, y: 9 });

console.time('a');
var route = a.getRoute({ x: 0, y: 0 }, { x: 6, y: 5 });
console.timeEnd('a');